<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
    <title>登录/注册/忘记密码 相关问题</title>
    <link rel='stylesheet' href='<%- rootUrl %>/res/adapter.css' />
    <link rel='stylesheet' href='<%- rootUrl %>/node_modules/font-awesome/css/font-awesome.min.css'/>
    <style>.width-limit{max-width:800px}</style>
    <script src="<%- rootUrl %>/res/adapter.js"></script>
</head>
<body class="body-nomargin common-style">
<alljs-widget><message-top><%- message %></message-top></alljs-widget>
<%- components['signhead'] ? include(components['signhead'], this) : '' %>
<div class="width-limit padding-leftright">
    <h2>用户登录</h2>
    <p>右上角点击按钮“ <i class="fa fa-sign-in"></i> ”，弹出登录表单</p>
    <p>在“用户”中输入“用户名&nbsp;或&nbsp;邮箱&nbsp;或&nbsp;手机号”,&nbsp;在“密码”中输入“密码”</p>
    <p>点击按钮“登录”立即登录</p>
    <hr/>
    <h2>注册新用户</h2>
    <p><a href="./register.html" style="text-decoration:underline">点此链接跳转到注册新用户页面</a></p>
    <hr/>
    <h2>忘记密码</h2>
    <form method="post" action="./signforgetpassword" onsubmit="return submitCheck()">
    <div style="word-break:keep-all">
        <p><input type="radio" name="type" value="email" checked />使用邮箱找回密码</p>
        <p><input type="radio" name="type" value="phone" disabled />使用手机号码找回密码</p>
    </div>
        <p>邮箱/手机<input type="text" name="host" style="width:10em" /></p>
        <p><input type="submit" value="立即找回" /></p>
    </form>
    <hr/>
    <h2>仍然无法登录</h2>
    <p>请联系我们的网站管理员为你处理。</p>
    <p>手机:(+86)15920372250 (何先生)</p>
</div>
<script>
var submitCheck = function(){
    if (document.getElementsByName('host')[0].value === ''){
        showMessage('邮箱/手机为空');
        return false;
    }
    return true;
}
</script>
</body>
</html>
